﻿@using CodeCamp.Models.Home
@model HomeAboutOtherCCEventsViewModel
@{
    @* ViewBag.RegistrationUrl set in code - SetSharedViewBagProperties *@
    ViewBag.EventName = "";
    ViewBag.Title = "";
    if ((@Model != null) && (@Model.EventDisplayName != null))
    {
        ViewBag.Title = "Other Boston Code Camp Events";
        ViewBag.EventName = @Model.EventDisplayName;
    }
    else
    {
        ViewBag.Title = "Other Boston Code Camp Events";
        ViewBag.EventName = "Code Camp";
    }
}

<h2>Other Boston Code Camp Events</h2>

<ul>
@foreach (var ccevent in Model.OtherCCEvents)
{
    <li>
    @Html.ActionLink(ccevent.DisplayName, "Index", new { eventName = ccevent.ShortName })
    @if (!ccevent.EventIsPublic)
    {
        <b>Not Public</b>
    }
    <span>@ccevent.DisplayDate</span>
    </li>
}
</ul>

@section sidebar {
    <div id="subLinksContainer" class="widget rounded-10">
    <h3>About</h3>
    <ul>
        <li>@Html.ActionLink("About Code Camp", "About", "Home", new { eventName = Model.EventShortName }, null)</li>
        @if ((Model != null) && Model.ShowAboutDirections)
        {
            <li>@Html.ActionLink("Directions", "Directions", "Home", new { eventName = Model.EventShortName }, null)</li>
        }
        <li>@Html.ActionLink("Questions? - Contact Us", "Contact", "Home", new { eventName = Model.EventShortName }, null)</li>
    </ul>
    </div>
    @Html.Partial("SidebarCommonPartial")
}
